package com.ysd.lis.controller.eq;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.eq.EqPatrolTaskEq;
import com.ysd.lis.entity.eq.EqSpotcheckTask;
import com.ysd.lis.entity.eq.EqSpotcheckTaskEq;
import com.ysd.lis.service.eq.EqSpotcheckTaskEqService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 点检记录设备 前端控制器
 * </p>
 *
 * @author WH
 * @since 2024-08-26
 */
@RestController
@RequestMapping("/api/eq/spotcheckTaskEq")
public class EqSpotcheckTaskEqController extends BaseController {

    @Autowired
    private EqSpotcheckTaskEqService eqSpotcheckTaskEqService;

    @ApiOperation("查询点检记录设备")
    @GetMapping("/findSpotcheckTaskEqList")
    public Result findSpotcheckTaskEqList(EqSpotcheckTaskEq eqSpotcheckTaskEq) {
        return eqSpotcheckTaskEqService.findSpotcheckTaskEqList(eqSpotcheckTaskEq);
    }

    @ApiOperation("查询点检记录通过设备id")
    @GetMapping("/findSpotcheckTaskByEqId")
    public Result findSpotcheckTaskByEqId(EqSpotcheckTaskEq eqSpotcheckTaskEq){
        return eqSpotcheckTaskEqService.findSpotcheckTaskByEqId(eqSpotcheckTaskEq);
    }

}
